{extend name="public/base" /}
		<!--尾部-->
		<!--返回顶部-->
{block name="content"}
{__block__}
<input type="hidden" name="mun_url" id="mun_url" value="0,0"/>
<div class="c-r right">
	<div class="label1">
		<div class="title" id="but">
			概况分析
		</div>
		<div class="label-1 label">
			<div class="tit t">
				<p>昨日概况</p>
			</div>
			<ul>

				<div class="l"><div><p>累计用户数</p><p>{$stitc->visit_total}</p></div></div>
				<div class="l"><div><p>转发次数 </p><p>{$stitc->share_pv}</p></div></div>
				<div class="l"><div><p>转发人数</p><p>{$stitc->share_uv}</p></div></div>
				<div class="l"><div><p>铭记超市</p><p></p></div></div>

			</ul>
			<div class="clear">

			</div>
		</div>

		<div class="label-2 label">
			<!--<div class="tit t">-->
				<!--<p>累计访问用户数</p>-->
			<!--</div>-->
			<div class="" id="main-lj" style="width: 1020px;height: 500px;"></div>
		</div>


	</div>
</div>
<script src="../../static/home/js/jquery-1.9.1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../static/home/js/js.js" type="text/javascript" charset="utf-8"></script>
<script src="../../static/home/js/echarts.common.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
    function load()
    {
        $.ajax({

            url:"{:url('Index/stics')}",
			dataType:'json',
            success:function (data) {

                console.log(data.res)
                var data = data.res
                var Time = new Array()   //实例化日期
                var Type = new Array()  //实例化类型
                var Value = new Array()  //实例化值

                for (var i = 0; i < data.length; i++){
                    Time.push(data[i].times)
                    Value.push(data[i].open)
                    Type.push(data[i].group)
                    //riqi += data[i].name+','
                    //alert(data[i].name)
                    //alert(riqi)
                }
                var myChart = echarts.init(document.getElementById('main-lj'));
                var option = {
                    tooltip: {
                        trigger: 'axis'
                    },
                    legend: {

                    },
                    xAxis:  {
                        type: 'category',
                        boundaryGap: false,
                        default: '#000',
                        data: Time,
                    },
                    yAxis: {
                        type: 'value',
                        axisLabel: {
                            formatter: '{value}'
                        }
                    },
                    series: [
                        {
                            name:'用户数最小值',
                            type:'line',
                            data:Value,
                            itemStyle:{
                                normal:{
                                    color:'rgb(67, 163, 251)'
                                },
                            },
                            markPoint: {
                                data: [
                                    {type: 'max', name: '最大值'},
                                    {type: 'min', name: '最小值'}
                                ]
                            },
                            markLine: {
                                data: [
                                    {type: 'average', name: '平均值'}
                                ]
                            }
                        },


                    ]
                };
                myChart.setOption(option);

            },
            error:function (err) {

            }
        })
	}


	//var arrq = riqi.split(',')


//	$('#but').click(function () {
//	    alert(11)
//        $.ajax({
//            url:"{:url('Index/stati')}",
//			dataType:'json',
//            success:function (data) {
//                console.log()
//
//            },
//            error:function (err) {
//
//            }
//        })
//    })

</script>
{/block}










